package com.hwx.establish;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableRabbit
@EnableDiscoveryClient
@EnableScheduling              //定时任务
@ComponentScan(basePackages = {"com.hwx.establish"})
@MapperScan("com.hwx.establish.dao")
public class EstablishApplication {

    public static void main(String[] args) {
        SpringApplication.run(EstablishApplication.class, args);
    }

}
